package com.party.core.service.partner;

import com.party.common.paging.Page;
import com.party.core.model.partner.PartnerLabel;
import com.party.core.model.partner.PartnerRealUserOutput;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @program: party-temp
 * @description: 标签接口
 * @author: Huaqunhao
 * @create: 2018-08-21 17:55
 **/
public interface IPartnerLabelService extends IBaseService<PartnerLabel> {
    List<PartnerLabel> getLabels(String organizationId,List<String> orgIds,Integer isMember);

    List<Map<String, String>> getLabelMembers(String organizationId, String labelId);

    int getRealUserCount(String organizationId, List<String> orgIds, Integer partnerType);

    int getMemberUserCount(String organizationId, List<String> orgIds,Integer partnerType);

    List<PartnerRealUserOutput> getRealMemberPagelist(String organizationId,List<String> orgIds,
                                                      Integer partnerType, Page page);

    List<PartnerRealUserOutput> getRealTotalPagelist(String organizationId,
                                                     String labId,
                                                     String keyword,
                                                     List<String> orgIds,
                                                     Integer partnerType,
                                                     Page page);

    List<PartnerRealUserOutput> getRealUserPagelist(String organizationId,
                                                    String keyword,
                                                    List<String> orgIds,
                                                    Page page);

    List<PartnerLabel> findByPartnerLabel(PartnerLabel partnerLabel);
}
